package com.kaili.basic.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;

@Data
public class DictEditDto {
    @ApiModelProperty("字典id")
    @NotNull(message = "字典id不能为空")
    private Integer id;

    @ApiModelProperty("字典编号")
    @NotEmpty(message = "字典编号不能为空")
    private String datadictCode;

    @ApiModelProperty("字典名称")
    @NotEmpty(message = "字典名称不能为空")
    private String datadictName;

    @ApiModelProperty("父id")
    @NotNull(message = "父id不能为空")
    private Integer parentId;

    @ApiModelProperty("备注")
    private String remark;

}
